package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SurveyAnswer;
import com.ruoyi.system.mapper.SurveyAnswerMapper;
import com.ruoyi.system.service.SurveyAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SurveyAnswerServiceImpl implements SurveyAnswerService {

    @Autowired
    private SurveyAnswerMapper surveyAnswerMapper;

    @Override
    public List<SurveyAnswer> selectSurveyAnswerList(SurveyAnswer surveyAnswer) {
        return surveyAnswerMapper.selectSurveyAnswerList(surveyAnswer);
    }

    @Override
    public List<SurveyAnswer> selectSurveyAnswerByUserId(Long userId) {
        return surveyAnswerMapper.selectSurveyAnswerByUserId(userId);
    }

    @Override
    public int insertSurveyAnswer(SurveyAnswer surveyAnswer) {
        return surveyAnswerMapper.insertSurveyAnswer(surveyAnswer);
    }
}
